package com.llb666.shop.items.infrastructure.conver;

import com.llb666.shop.items.domain.entity.ItemsComments;
import com.llb666.shop.items.infrastructure.po.ItemsCommentsPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商品评论类型转换器 po -- entity
 *
 * @author llb666
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ItemsCommentsCvt {
    ItemsCommentsCvt INSTANCE = Mappers.getMapper(ItemsCommentsCvt.class);

    ItemsCommentsPo do2po(ItemsComments itemsComments);

    ItemsComments po2do(ItemsCommentsPo itemsCommentsPo);

    List<ItemsComments> po2doList(List<ItemsCommentsPo> itemsCommentsPos);

}
